Øyvind Kolås [Fri, 18 Nov 2011 18:47:02 +0000 (18:47 +0000)]
post release version bump to 0.1.7
Øyvind Kolås [Fri, 18 Nov 2011 18:44:58 +0000 (18:44 +0000)]
bump version to 0.1.6
Nils Philippsen [Fri, 18 Nov 2011 16:36:04 +0000 (17:36 +0100)]
build: clean generated vapi file
Øyvind Kolås [Mon, 17 Oct 2011 17:07:19 +0000 (18:07 +0100)]
build: bump automake requirement to 1.11
This is needed for the silent build rules, and probably more.
Javier Jardón [Mon, 17 Oct 2011 16:04:38 +0000 (17:04 +0100)]
Copy introspection.m4 on tree
This avoid us to depend on a system installed gobject-introspection
package.
Javier Jardón [Mon, 17 Oct 2011 12:36:42 +0000 (13:36 +0100)]
build: Set automake options in AM_INIT_AUTOMAKE
Javier Jardón [Mon, 17 Oct 2011 12:35:11 +0000 (13:35 +0100)]
Makefile.am: Remove m4/introspection.m4 from EXTRA_DIST
Javier Jardón [Mon, 17 Oct 2011 12:21:53 +0000 (13:21 +0100)]
build: Do not use local copy of introspection.m4
Javier Jardón [Mon, 17 Oct 2011 02:00:44 +0000 (03:00 +0100)]
autogen.sh: Use autoreconf instead custom script
Javier Jardón [Mon, 17 Oct 2011 01:56:07 +0000 (02:56 +0100)]
configure.ac: Replace deprecated AC_STDC_HEADERS macro
Javier Jardón [Mon, 17 Oct 2011 01:55:08 +0000 (02:55 +0100)]
configure.ac: Use new libtool syntax
Javier Jardón [Mon, 17 Oct 2011 01:52:51 +0000 (02:52 +0100)]
configure.ac: Check for AM_SILENT_RULES after AM_INIT_AUTOMAKE
Javier Jardón [Mon, 17 Oct 2011 01:50:10 +0000 (02:50 +0100)]
configure.ac: PACKAGE_NAME is already defined by AC_INIT
Javier Jardón [Mon, 17 Oct 2011 01:48:47 +0000 (02:48 +0100)]
configure.ac: Replace AM_CONFIG_HEADER deprecated macro
Use AC_CONFIG_HEADERS instead
Javier Jardón [Mon, 17 Oct 2011 01:47:21 +0000 (02:47 +0100)]
Makefile.am: honor aclocal flags
Mukund Sivaraman [Mon, 12 Sep 2011 19:22:06 +0000 (00:52 +0530)]
build: Remove --enable-maintainer-mode as it's now the default
Mukund Sivaraman [Mon, 12 Sep 2011 19:20:21 +0000 (00:50 +0530)]
build: Don't complain about non-GNU make rules
Mukund Sivaraman [Mon, 12 Sep 2011 19:08:29 +0000 (00:38 +0530)]
build: Enable maintainer mode by default
See <http://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/>.
Michael Muré [Fri, 19 Aug 2011 20:32:07 +0000 (22:32 +0200)]
add the possibility to distinct format_n type from the others
Jon Nordby [Wed, 3 Aug 2011 22:45:04 +0000 (00:45 +0200)]
Fix install of babl vapi file
The pkg-config package refered no longer exists,
and currently only libvala provides a vapidir in pkg-config,
and this package is versioned and changes all the time.
Other projects just use $(datadir)/vala/vapi, so we do the same
Jon Nordby [Wed, 3 Aug 2011 21:13:29 +0000 (23:13 +0200)]
Build Vala support (.vapi file) by default
Generated from .gir file.
Barak Itkin [Thu, 21 Jul 2011 14:33:17 +0000 (17:33 +0300)]
Remove trailing space in comments
Nils Philippsen [Thu, 26 May 2011 20:50:57 +0000 (22:50 +0200)]
mask out unwanted formats with if(0) {...}
premature return statements make source code checkers unhappy
Nils Philippsen [Thu, 26 May 2011 14:04:54 +0000 (16:04 +0200)]
get rid of hack_hack(), use NEEDS_BABL_DB instead
Nils Philippsen [Thu, 26 May 2011 13:37:09 +0000 (15:37 +0200)]
catch babl_{format,model}_new calls with missing parameters
Nils Philippsen [Thu, 26 May 2011 10:34:14 +0000 (12:34 +0200)]
add comment about case falling through
this makes code checker tools happy and the code easier to understand
Nils Philippsen [Thu, 26 May 2011 10:22:23 +0000 (12:22 +0200)]
fix element size when allocating chain_table
Øyvind Kolås [Thu, 21 Apr 2011 11:00:31 +0000 (12:00 +0100)]
Do not reject colliding conversion names
Permit registering multiple conversions between the same formats from the same
extension. Babl was rejecting subsequent conversions/variations in the same
module; this is desired for most other types of babl objects but not
conversions.
Nils Philippsen [Wed, 20 Apr 2011 11:43:08 +0000 (13:43 +0200)]
base: don't define and set unused variable
otherwise gcc 4.6 would warn about it
Øyvind Kolås [Sun, 17 Apr 2011 16:58:52 +0000 (17:58 +0100)]
stats: change percentage of pixels needed to be part of negative stats
Øyvind Kolås [Sun, 17 Apr 2011 16:50:11 +0000 (17:50 +0100)]
extensions: Remove some of the blatantly wrong conversions
These conversions would never be chosen anyways, even with high tolerance, but
they are dead code and can just be removed.
Øyvind Kolås [Sun, 17 Apr 2011 16:22:12 +0000 (17:22 +0100)]
stats: remove false negatives from HTML stats output
too many of the conversions are flagged as bad in the matrix change code so
that only conversions that contribute to more than 0.1% of the overall pixels
converted by babl are shown in the stats written when BABL_STATS environment
variable is set.
Rupert Weber [Wed, 1 Sep 2010 16:16:10 +0000 (18:16 +0200)]
docs: fixed example code in index-static.html.in
added babl_init(), fish can't be const, Babl* can't be dereferenced,
one variable name changed during example, added sizeof to make it
a little more obvious.
Rupert Weber [Wed, 1 Sep 2010 15:54:21 +0000 (17:54 +0200)]
docs: HTML cleanup
Small HTML cleanups like missing end-tags so page passes
HTML validator.
Jon Nordby [Mon, 28 Mar 2011 20:16:11 +0000 (22:16 +0200)]
build: Remove --pkg babl option to g-ir-scanner
--pkg is intended for dependencies. Babl does not depend on Babl
This lead to g-ir-scanner barfing if Babl was not already installed.
Nils Philippsen [Wed, 2 Mar 2011 10:42:37 +0000 (11:42 +0100)]
fix building in separate directory
Øyvind Kolås [Thu, 20 Jan 2011 22:36:19 +0000 (22:36 +0000)]
post release bump to 0.1.5
Øyvind Kolås [Thu, 20 Jan 2011 22:35:09 +0000 (22:35 +0000)]
bump version to 0.1.4
Rupert Weber [Sun, 19 Sep 2010 12:59:07 +0000 (14:59 +0200)]
removed redundant RGBA double registration
"RGBA double2 was registred twice, once per name, once per id.
Rupert Weber [Fri, 1 Oct 2010 00:18:53 +0000 (02:18 +0200)]
allow reregistering but check for differences
babl_model_new() emitted a warning when reregistering a model,
babl_format_new(), babl_type_new(), and babl_component_new()
quietly returned a preexisting object.
Changed so that all four functions return the preexisting object
if the new registration doesn't conflict, otherwise make the
error fatal.
(Fixed some conflicting and redundant registrations for
"Y'CbCr u8" along the way)
Martin Nordholts [Wed, 29 Dec 2010 07:25:50 +0000 (08:25 +0100)]
Fix make distcheck
When we generate the gir-file we need to refer to the source files
relative to the srcdir to support out-of-source-tree builds.
Martin Nordholts [Mon, 27 Dec 2010 20:34:00 +0000 (21:34 +0100)]
Add BABL_IS_BEING_COMPILED #define support
Sometimes it is ok that babl includes are included directly and not
through babl.h, like when we generate GObject introspection files.
The important thing is just that users of the babl API don't begin to
include headers we don't guarantee to always exist, and
BABL_IS_BEING_COMPILED doesn't obstruct this goal.
Martin Nordholts [Mon, 27 Dec 2010 20:30:58 +0000 (21:30 +0100)]
Add Babl-$(BABL_API_VERSION).gir dependencies
Add Babl-$(BABL_API_VERSION).gir dependencies for proper
auto-recompilation.
Øyvind Kolås [Sat, 18 Dec 2010 00:12:01 +0000 (00:12 +0000)]
disable DEBUG_MEM
This option provides a hit in multithreaded use, and should only be enabled
when debugging babl memory allocation internals.
Martin Nordholts [Wed, 29 Sep 2010 20:19:46 +0000 (22:19 +0200)]
build/buildbot: Supress AM_PROG_LIBTOOL warning with autoconf 2.68
Martin Nordholts [Wed, 29 Sep 2010 19:55:30 +0000 (21:55 +0200)]
configure.ac: Use AC_LANG_PROGRAM to generate test-program
Use AC_LANG_PROGRAM to generate test-program for AC_COMPILE_IFELSE, so
we don't get
warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
in autoconf 2.68.
Second try, we must quote macro arguments...
Martin Nordholts [Wed, 29 Sep 2010 19:55:30 +0000 (21:55 +0200)]
configure.ac: Use AC_LANG_PROGRAM to generate test-program
Use AC_LANG_PROGRAM to generate test-program for AC_COMPILE_IFELSE, so
we don't get
warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
in autoconf 2.68.
Øyvind Kolås [Sun, 12 Sep 2010 16:23:52 +0000 (17:23 +0100)]
added Rubert Weber to AUTHORS
Rupert Weber [Sat, 11 Sep 2010 19:17:34 +0000 (21:17 +0200)]
create double format for every model
Changes babl_model_new() to create a respective double format
for every new registered model.
That way applications and extensions can rely on the double
format to always exist.
Martin Nordholts [Mon, 6 Sep 2010 06:35:17 +0000 (08:35 +0200)]
configure.ac: Disable gzip tarball
We do releases with the bzip2 tarball, so don't bother creating a gzip
tarball.
Martin Nordholts [Mon, 6 Sep 2010 06:35:03 +0000 (08:35 +0200)]
babl: Decrease scope of create_name() buffer
Martin Nordholts [Wed, 1 Sep 2010 15:18:25 +0000 (17:18 +0200)]
build: Rename to buildbot/suppressed-warnings.txt
Rename buildbot/suppressed_warnings.txt to
buildbot/suppressed-warnings.txt, dashes are nicer in file names.
Martin Nordholts [Tue, 31 Aug 2010 18:57:15 +0000 (20:57 +0200)]
configure.ac: Quote version numbers in m4 define
Martin Nordholts [Thu, 22 Jul 2010 21:30:14 +0000 (23:30 +0200)]
build: Add buildbot/suppressed_warnings.txt
Add a warning suppression file for buildbot (http://buildbot.net) so
we can start doing continous automated testing and nightly builds
eventually.
Martin Nordholts [Thu, 22 Jul 2010 21:10:26 +0000 (23:10 +0200)]
Update one more .gitignores
Update one more .gitignores for stuff created during make distcheck.
Martin Nordholts [Thu, 22 Jul 2010 08:10:01 +0000 (10:10 +0200)]
Update .gitignores
Philipp Sadleder [Thu, 22 Jul 2010 07:21:25 +0000 (09:21 +0200)]
introspection: fix girdir and typelibsdir
Build girdir/typelibsdir by using datadir/libdir like in gtk+.
Using INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR leads to absolute system
paths (make distcheck fails).
Mukund Sivaraman [Fri, 16 Jul 2010 15:05:43 +0000 (20:35 +0530)]
Fix type-punning warning
Øyvind Kolås [Fri, 16 Jul 2010 16:47:47 +0000 (17:47 +0100)]
build: fix inclusion of m4/introspection.m4
The gobject introspection additions expected autoreconf to be used in
autogen.sh, perhaps we should do that instead? This commit should fix
building on systems that do not have introspection.m4 in system dirs.
Philipp Sadleder [Mon, 12 Jul 2010 14:49:12 +0000 (16:49 +0200)]
Add experimental introspection support.
Disabled by default; use --enable-introspection to enable it.
Øyvind Kolås [Mon, 28 Jun 2010 16:44:30 +0000 (17:44 +0100)]
extensions: removed frequency extension
Not needed after the introduction of babl_format_n
Øyvind Kolås [Sun, 27 Jun 2010 23:42:02 +0000 (00:42 +0100)]
Add code to handle N-components
Added a new API call, babl_format_n (). This allows constructing a babl
format with an arbitrary number of components all of the same type. At
the moment. The model used for such formats is "Y", at the moment
conversions are only well defined for such formats to other n-component
formats with the same number of components.
Øyvind Kolås [Sun, 27 Jun 2010 17:01:12 +0000 (18:01 +0100)]
remove some left-over dead code
Øyvind Kolås [Sun, 27 Jun 2010 16:48:24 +0000 (17:48 +0100)]
babl_realloc: move destructor from original to new
Øyvind Kolås [Sun, 27 Jun 2010 13:50:41 +0000 (14:50 +0100)]
Port all of babl to use use babl_set_destructor
Making all babl objects be free-able with babl_free means that overall
management code can be directly shared between the different
babl-classes.
Øyvind Kolås [Sun, 27 Jun 2010 14:26:38 +0000 (15:26 +0100)]
babl-internal: remove unneeded lines from gdb output
Øyvind Kolås [Sun, 27 Jun 2010 14:09:33 +0000 (15:09 +0100)]
babl_free: Add double free detection
Øyvind Kolås [Sat, 26 Jun 2010 02:54:53 +0000 (03:54 +0100)]
Add a babl_set_destructor
Keep a callback function for each allocation instance, that allows an
allocation specific callback to be called when the memory segment is
freed. This makes a valgrind warning go away, most of the time no extra
memory should be needed since this is likely to fit within the padding.
Mukund Sivaraman [Mon, 21 Jun 2010 17:50:17 +0000 (23:20 +0530)]
Add entries to .gitignore
Mukund Sivaraman [Mon, 21 Jun 2010 17:39:51 +0000 (23:09 +0530)]
Change Makefile rule to avoid warning
Øyvind Kolås [Wed, 17 Mar 2010 13:08:10 +0000 (13:08 +0000)]
Increment path to babl tarballs in install file
Tor Lillqvist [Fri, 29 Jan 2010 10:10:00 +0000 (12:10 +0200)]
Build concurrency-stress-test only on Unix as it uses pthreads unconditionally
Tor Lillqvist [Fri, 29 Jan 2010 09:56:24 +0000 (11:56 +0200)]
Use _WIN32 instead of WIN32
Tor Lillqvist [Fri, 29 Jan 2010 09:50:36 +0000 (11:50 +0200)]
Use _WIN32 instead of WIN32
_WIN32 works more reliably, like if somebody compiles with --std=c99.
Øyvind Kolås [Mon, 18 Jan 2010 00:51:20 +0000 (00:51 +0000)]
fix CIE Lab alpha float format
It used to specify a double data type.
Øyvind Kolås [Thu, 14 Jan 2010 18:02:05 +0000 (18:02 +0000)]
Post release increment of version to 0.1.3
Øyvind Kolås [Thu, 14 Jan 2010 18:01:04 +0000 (18:01 +0000)]
Release babl-0.1.2
Øyvind Kolås [Sun, 29 Nov 2009 15:42:05 +0000 (15:42 +0000)]
Only initialize test buffers once
Also made the test buffer static inline for individual conversions like
it already was for fish paths.
Note, this relies on none of the tested conversions by accident
being buggy enough to modify their source data, adding a sanity
function that compares the buffers with the correct values could
perhaps be useful.
Øyvind Kolås [Thu, 26 Nov 2009 18:45:41 +0000 (18:45 +0000)]
made babl_list_size babl_list_get_first and babl_list_get_last macros.
Thereby forcing inlining to gain performance critical code where the
overhead of additional function calls matter.
Øyvind Kolås [Tue, 24 Nov 2009 01:18:57 +0000 (01:18 +0000)]
Fix logic for type detection in babl_fish_process
Øyvind Kolås [Tue, 24 Nov 2009 01:04:38 +0000 (01:04 +0000)]
Removed two function calls in common path
Re-arranged code making babl_process and babl_fish_process reside
in babl-path-fish.c, where babl_fish_process and babl_fish_path_process
can be inlined with babl_process().
Øyvind Kolås [Tue, 24 Nov 2009 00:56:56 +0000 (00:56 +0000)]
Removed instrumentation from babl_process.
This is part of the inner babl processing and should be as slim as
posisble.
Øyvind Kolås [Sun, 22 Nov 2009 18:28:23 +0000 (18:28 +0000)]
Remove use of static buffer to build the name for format.
Øyvind Kolås [Sun, 22 Nov 2009 17:44:52 +0000 (17:44 +0000)]
Make the initial list size in all databases 512 long.
Like the previous commit.
Øyvind Kolås [Sun, 22 Nov 2009 17:10:39 +0000 (17:10 +0000)]
Increase the default size of hash tables to 512 entries.
This avoids resizing of the hash tables for all typical usage scenarios
and thus avoids a potential race condition in unlocked lookups.
Øyvind Kolås [Sat, 21 Nov 2009 18:31:50 +0000 (18:31 +0000)]
Fix accidental use of the format mutex instead of the debug mutex.
The memory statistics book-keeping was reusing the BablFormat flag mutex
thus deadlocking with pthreads mutexes since they are not recursive by
default.
Michael Schumacher [Sat, 21 Nov 2009 17:11:23 +0000 (18:11 +0100)]
CriticalSection does not exist, it is CRITICAL_SECTION
Øyvind Kolås [Sat, 21 Nov 2009 16:47:24 +0000 (16:47 +0000)]
Made BablFishPath thread safe.
Refactored static variables away and added a lock to protect state
keeping inside the individual BablFormat when permutating possible
conversion paths.
Øyvind Kolås [Sat, 21 Nov 2009 16:42:43 +0000 (16:42 +0000)]
Added a mutex to memory sanity counters.
Also added a BABL_DEBUG_MEM define which is set to 1 in babl-internal.h
that can be used to disable these locks which only are nedded when
debugging.
Daniel Paredes García [Wed, 8 Jul 2009 14:58:45 +0000 (16:58 +0200)]
First aproximation to a thread-safe version of babl.
Øyvind Kolås [Sat, 21 Nov 2009 16:15:04 +0000 (16:15 +0000)]
Made the each babl type db in babl have a mutex.
We lock only on mutations of the databases, when reading from them no
locks are needed.
Øyvind Kolås [Sat, 21 Nov 2009 16:05:00 +0000 (16:05 +0000)]
Made babl_hash_table_find thread safe by making find_func an argument.
Øyvind Kolås [Sat, 21 Nov 2009 15:55:11 +0000 (15:55 +0000)]
Added a BablMutex type.
Mutex abstraction for internal use pthreads by default and critical
sections on win32.
Øyvind Kolås [Sat, 21 Nov 2009 15:50:41 +0000 (15:50 +0000)]
Make babl_ticks() thread safe.
Made a static variable a temporary variable in the only function using
it.
Martin Nordholts [Thu, 19 Nov 2009 18:59:10 +0000 (19:59 +0100)]
tests: Add pthread based concurrency stress test for babl_fish()
Add a test that runs a bunch of pthread threads, all trying to use
babl_fish() at the same time. This test currently fails and it is the
goal of bug 587675 to make it pass.
The cause of the failure is the static variables in babl-fish-path.c.
In particular 'current_path' clearly needs to be moved to some
instance variable.
Øyvind Kolås [Thu, 12 Nov 2009 19:32:39 +0000 (19:32 +0000)]
Added direct code paths for RGB u8 and RGBA u8 to RaGaBaA float
Yaakov Selkowitz [Thu, 8 Oct 2009 23:33:26 +0000 (01:33 +0200)]
Bug 562741 - babl Cygwin patch : PLATFORM_WIN32 patch
Martin Nordholts [Fri, 7 Aug 2009 19:47:00 +0000 (21:47 +0200)]
Update .gitignore for win32
Martin Nordholts [Fri, 7 Aug 2009 19:17:35 +0000 (21:17 +0200)]
Add $(EXEEXT) to tools in Makefile.ams to fix win32 compilation
Martin Nordholts [Tue, 4 Aug 2009 19:01:20 +0000 (21:01 +0200)]
babl: Fix compiler warnings
Avoid redefinition and implicit casts